|
| def | FromDWG (engine_path, src_dwg_path, saved_pdf_path, settings) |
| | Convert a DWG format file to a PDF file. More...
|
| |
| def | FromExcel (src_excel_file_path, src_file_password, saved_pdf_path, engine_path, setting_data, fx_engine_path, specified_user_profile_path) |
| | Convert an Excel format file to a PDF file. More...
|
| |
| def | FromHTML (src_html, engine_path, cookies_path, setting_data, saved_pdf_path, timeout) |
| | Convert a HTML format file or a URL of a Web page to a PDF file. More...
|
| |
| def | FromHTML (src_html, engine_path, cookies_reader, setting_data, saved_pdf_path, timeout) |
| | Convert a HTML format file or a URL of a Web page to a PDF file. More...
|
| |
| def | FromHTML (src_html, engine_path, cookies_reader, setting_data, saved_pdf_filestream, timeout) |
| | Convert a HTML format file or a URL of a Web page to a PDF file. More...
|
| |
| def | FromHTML (src_html, html2pdf_related_resource_array, engine_path, cookies_reader, setting_data, saved_pdf_filestream, timeout) |
| | Convert a HTML format file or a URL of a Web page to a PDF file. More...
|
| |
| def | FromImage (src_img, saved_pdf_path) |
| | Convert a Image format file to a PDF file. More...
|
| |
| def | FromPowerPoint (src_ppt_file_path, src_file_password, saved_pdf_path, engine_path, setting_data, fx_engine_path, specified_user_profile_path) |
| | Convert a PowerPoint format file to a PDF file. More...
|
| |
| def | FromTXT (src_txt, saved_pdf_path, setting_data) |
| | Convert a TXT format file to a PDF file. More...
|
| |
| def | FromWord (src_word_file_path, src_file_password, saved_pdf_path, engine_path, setting_data, fx_engine_path, specified_user_profile_path) |
| | Convert a Word format file to a PDF file. More...
|
| |
| def | ToXML (src_pdf_path, src_file_password, saved_xml_path, saved_image_folder_path, is_force_to_tagged_pdf) |
| | Convert a PDF file to a XML format file. More...
|
| |
Conversion add-on module can be used to do some conversion between PDF file and other file formats. Before using any class or methods in this module, please ensure Foxit PDF SDK has been initialized successfully by function FoxitPDFSDKPython2.Library.Initialize with a key including "Conversion" module. Before using function FoxitPDFSDKPython2.Convert.FromDWG , please ensure Foxit PDF SDK has been initialized successfully by function FoxitPDFSDKPython2.Library.Initialize with a key including "DWG2PDF" module. From version 11.0, we do not update and maintance HTML2PDF engine package on linux x86 platform and maybe it will be deprecated in the future version on linux x86 platform.
- See also
- FoxitPDFSDKPython2.Library
| FoxitPDFSDKPython2.Convert.FromExcel |
( |
|
src_excel_file_path, |
|
|
|
src_file_password, |
|
|
|
saved_pdf_path, |
|
|
|
engine_path, |
|
|
|
setting_data, |
|
|
|
fx_engine_path, |
|
|
|
specified_user_profile_path |
|
) |
| |
|
static |
Convert an Excel format file to a PDF file.
Currently, this function can be used for Linux armv8 or Linux x86/x86_64 system. If you are on a Linux armv8 system, then please ensure that WPS professional is installed on the machine. If you are on a Linux x86/x86_64 system, then please ensure that LibreOffice is installed on the machine.
- Parameters
-
| [in] | src_excel_file_path | Path of a Excel format file. This should not be an empty string. |
| [in] | src_file_password | Password for the input Excel format file. If no password is needed for the file, please pass an empty string. |
| [in] | saved_pdf_path | Path of the saved PDF file as conversion result. This should not be an empty string. |
| [in] | engine_path | In linux armv8 system, it is used to represent the path of WPS engine(librpcetapi.so). For examples, "/opt/kingsoft/wps-office/office6". It can be empty. Default path: "/opt/kingsoft/wps-office/office6". In linux x86/x86_64 system, it is used to represent the path of LibreOffice engine(soffice.bin), and it can not be empty. For examples, "/usr/lib/libreoffice/program". |
| [in] | setting_data | (Reserved, unsupported yet)Setting data used for converting. |
| [in] | fx_engine_path | The path of "Office to PDF" engine. This parameter is applicable only to Linux x86/x86_64 systems. It can be empty. If the parameter is empty, LibreOffice engine will be called directly for Excel to PDF conversion, otherwise LibreOffice engine will be called through the "Office to PDF" engine for Excel to PDF conversion. |
| [in] | specified_user_profile_path | The User-defined directory path to store the user profile of the LibreOffice engine. It needs to be used with "Office to PDF" engine. It can be empty. If the parameter is empty, the LibreOffice engine will use the default user profile and does not suppot multi-threading, otherwise LibreOffice engine will create a new user profile in the User-defined directory to support multi-threading. |
- Returns
- None.
| FoxitPDFSDKPython2.Convert.FromPowerPoint |
( |
|
src_ppt_file_path, |
|
|
|
src_file_password, |
|
|
|
saved_pdf_path, |
|
|
|
engine_path, |
|
|
|
setting_data, |
|
|
|
fx_engine_path, |
|
|
|
specified_user_profile_path |
|
) |
| |
|
static |
Convert a PowerPoint format file to a PDF file.
Currently, this function can be used for Linux armv8 or Linux x86/x86_64 system. If you are on a Linux armv8 system, then please ensure that WPS professional is installed on the machine. If you are on a Linux x86/x86_64 system, then please ensure that LibreOffice is installed on the machine.
- Parameters
-
| [in] | src_ppt_file_path | Path of a PowerPoint format file. This should not be an empty string. |
| [in] | src_file_password | Password for the input Excel format file. If no password is needed for the file, please pass an empty string. |
| [in] | saved_pdf_path | Path of the saved PDF file as conversion result. This should not be an empty string. |
| [in] | engine_path | In linux armv8 system, it is used to represent the path of WPS engine(librpcwppapi.so). For examples, "/opt/kingsoft/wps-office/office6". It can be empty. Default path: "/opt/kingsoft/wps-office/office6". In linux x86/x86_64 system, it is used to represent the path of LibreOffice engine(soffice.bin), and it can not be empty. For examples, "/usr/lib/libreoffice/program". |
| [in] | setting_data | (Reserved, unsupported yet)Setting data used for converting. |
| [in] | fx_engine_path | The path of "Office to PDF" engine. This parameter is applicable only to Linux x86/x86_64 systems. It can be empty. If the parameter is empty, LibreOffice engine will be called directly for PowerPoint to PDF conversion, otherwise LibreOffice engine will be called through the "Office to
PDF" engine for PowerPoint to PDF conversion. |
| [in] | specified_user_profile_path | The User-defined directory path to store the user profile of the LibreOffice engine. It needs to be used with "Office to PDF" engine. It can be empty. If the parameter is empty, the LibreOffice engine will use the default user profile and does not suppot multi-threading, otherwise LibreOffice engine will create a new user profile in the User-defined directory to support multi-threading. |
- Returns
- None.
| FoxitPDFSDKPython2.Convert.FromWord |
( |
|
src_word_file_path, |
|
|
|
src_file_password, |
|
|
|
saved_pdf_path, |
|
|
|
engine_path, |
|
|
|
setting_data, |
|
|
|
fx_engine_path, |
|
|
|
specified_user_profile_path |
|
) |
| |
|
static |
Convert a Word format file to a PDF file.
Currently, this function can be used for Linux armv8 or Linux x86/x86_64 system. If you are on a Linux armv8 system, then please ensure that WPS professional is installed on the machine. If you are on a Linux x86/x86_64 system, then please ensure that LibreOffice is installed on the machine.
- Parameters
-
| [in] | src_word_file_path | Path of a Word format file. This should not be an empty string. |
| [in] | src_file_password | Password for the input Word format file. If no password is needed for the file, please pass an empty string. |
| [in] | saved_pdf_path | Path of the saved PDF file as conversion result. This should not be an empty string. |
| [in] | engine_path | In linux armv8 system, it is used to represent the path of WPS engine(librpcwpsapi.so). For examples, "/opt/kingsoft/wps-office/office6". It can be empty. Default path: "/opt/kingsoft/wps-office/office6". In linux x86/x86_64 system, it is used to represent the path of LibreOffice engine(soffice.bin), and it can not be empty. For examples, "/usr/lib/libreoffice/program". |
| [in] | setting_data | (Reserved, unsupported yet)Setting data used for converting. |
| [in] | fx_engine_path | The path of "Office to PDF" engine. This parameter is applicable only to Linux x86/x86_64 systems. It can be empty. If the parameter is empty, LibreOffice engine will be called directly for Word to PDF conversion, otherwise LibreOffice engine will be called through the "Office to PDF" engine for Word to PDF conversion. |
| [in] | specified_user_profile_path | The User-defined directory path to store the user profile of the LibreOffice engine. It needs to be used with "Office to PDF" engine. It can be empty. If the parameter is empty, the LibreOffice engine will use the default user profile and does not suppot multi-threading, otherwise LibreOffice engine will create a new user profile in the User-defined directory to support multi-threading. |
- Returns
- None.